﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using System.Threading;

namespace WPP_Console
{
    /// <summary>
    /// Interaction logic for App.xaml window
    /// </summary>
    /// 
    public partial class App : Application
    {

        [STAThread()]
        static void Main()
        {
            //Initialize and call a new splash window
            Splasher.Splash = new SplashWindow();
            Splasher.ShowSplash();

            //Display the loading message for one second
            for (int i = 0; i < 1; i++)
            {
                for (int j = 0; j < 1000; j++)
                {
                    MessageListener.Instance.ReceiveMessage(string.Format("Loading Data...", j));

                }
                for (int k = 0; k < 1000; k++)
                {
                    MessageListener.Instance.ReceiveMessage(string.Format("Initializing...", k));

                }

            }


            //Start program after wait
            new App();
        }

        /// <summary>
        /// Description of starting window (MainWindow.xaml in this case
        /// </summary>
        /// 
        public App()
        {
            StartupUri = new System.Uri("MainWindow.xaml", UriKind.Relative);

            Run();
        }
    }
}
